Odamex Message Boards

Community Discussion => Technical Support => Topic started by: lnxr0x on January 12, 2013, 17:00:00

Title: need help compiling on Linux
Post by: lnxr0x on January 12, 2013, 17:00:00
I'm currently trying to compile Odamex on Debian (squeeze) and getting the following error.

Code: [Select]
Linking CXX executable odamast
[ 94%] Built target odamast
[ 94%] Generating res/xrc_resource.h
/bin/sh: wxWidgets_wxrc_EXECUTABLE-NOTFOUND: not found
make[2]: *** [odalaunch/res/xrc_resource.h] Error 127
make[1]: *** [odalaunch/CMakeFiles/odalaunch.dir/all] Error 2
make: *** [all] Error 2

I believe WxWidgets is installed:
libwxgtk2.8-dev is already the newest version.

any help would be appreciated

Thanks
Title: Re: need help compiling on Linux
Post by: Manc on January 13, 2013, 03:19:53
There are two components to wx, the main build and wxrc.  If you are installing these all from packages, perhaps wxrc is a separate package. 
Title: Re: need help compiling on Linux
Post by: lnxr0x on January 13, 2013, 08:53:31
It looks like the cmake script is referring to /bin/wxrc but on Debian wxrc is in /usr/bin.

Is there a way I can tell cmake to look in /usr/bin for wxrc  ??
Title: Re: need help compiling on Linux
Post by: AlexMax on January 13, 2013, 11:02:17
It looks like the cmake script is referring to /bin/wxrc but on Debian wxrc is in /usr/bin.

Is there a way I can tell cmake to look in /usr/bin for wxrc  ??

Try this:

Code: [Select]
cmake .. -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc
You can also set this variable from within cmake-gui or ccmake if you prefer.
Title: Re: need help compiling on Linux
Post by: lnxr0x on January 13, 2013, 11:51:39
That did the trick for wxrc !! .. so close !! .. but now I get the following ..
Code: [Select]
[ 97%] Building CXX object odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: initializer expression list treated as compound expression
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:437: error: expected ‘,’ or ‘;’ before ‘{’ token
make[2]: *** [odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o] Error 1
make[1]: *** [odalaunch/CMakeFiles/odalaunch.dir/all] Error 2
make: *** [all] Error 2

Thanks in advance for all the help !!!
Title: Re: need help compiling on Linux
Post by: AlexMax on January 13, 2013, 16:42:28
That did the trick for wxrc !! .. so close !! .. but now I get the following ..
Code: [Select]
[ 97%] Building CXX object odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: initializer expression list treated as compound expression
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:437: error: expected ‘,’ or ‘;’ before ‘{’ token
make[2]: *** [odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o] Error 1
make[1]: *** [odalaunch/CMakeFiles/odalaunch.dir/all] Error 2
make: *** [all] Error 2

Thanks in advance for all the help !!!

Unfortunately, Debian ships with an older version of wxWidgets which doesn't recognize the wxIntPtr type.  Apparently it's a wxWidgets 2.9-ism that was backported to a more recent version of wxWidgets 2.8...more recent than the copy included with Debian, apparently.

I have a headless debian box, and was able to get the program to compile by opening up odalaunch/src/lst_custom.cpp and putting the following line below all of the other #include lines but above the rest of the file:

Code: [Select]
typedef long int wxIntPtr;
See if that works for you.  I'll ping our launcher maintainer with this issue and get his take on it.
Title: Re: need help compiling on Linux
Post by: lnxr0x on January 28, 2013, 20:00:02
That did the trick !! Sorry for the delayed response, been busy. The only thing I couldn't do was get "make install" to work, so I just put the binaries in their own directory and everything works great.

Thanks for the help !!
Title: Re: need help compiling on Linux
Post by: tauro on January 29, 2013, 00:15:26
Hello, I get the same exact error message using Debian Squeeze!

What did the trick for you?? Can you please tell??

Thank you in advance

The error:

Code: [Select]
[ 97%] Building CXX object odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:435: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: ‘wxIntPtr’ was not declared in this scope
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:436: error: initializer expression list treated as compound expression
/home/lnxr0x/odamex-src-0.6.2/odalaunch/src/lst_custom.cpp:437: error: expected ‘,’ or ‘;’ before ‘{’ token
make[2]: *** [odalaunch/CMakeFiles/odalaunch.dir/src/lst_custom.cpp.o] Error 1
make[1]: *** [odalaunch/CMakeFiles/odalaunch.dir/all] Error 2
make: *** [all] Error 2

Title: Re: need help compiling on Linux
Post by: Hekksy on January 29, 2013, 04:49:15
Did you see this part?

Unfortunately, Debian ships with an older version of wxWidgets which doesn't recognize the wxIntPtr type.  Apparently it's a wxWidgets 2.9-ism that was backported to a more recent version of wxWidgets 2.8...more recent than the copy included with Debian, apparently.

I have a headless debian box, and was able to get the program to compile by opening up odalaunch/src/lst_custom.cpp and putting the following line below all of the other #include lines but above the rest of the file:

Code: [Select]
typedef long int wxIntPtr;
See if that works for you.  I'll ping our launcher maintainer with this issue and get his take on it.
Title: Re: need help compiling on Linux
Post by: tauro on March 06, 2013, 11:21:37
Thank you for answering HeX9109. I didn't see it before. Finally, I compiled successfully.
Title: Re: need help compiling on Linux
Post by: Gregoryner on March 23, 2024, 19:38:17
Econ (http://audiobookkeeper.ru/book/145)215.6 (http://cottagenet.ru/plan/145)PERF (http://eyesvision.ru/eyesight/24)PERF (http://eyesvisions.com/eyesight/24)Слеп (http://factoringfee.ru/t/299821)Рок- (http://filmzones.ru/t/130004)qвдл (http://gadwall.ru/t/130102)Pete (http://gaffertape.ru/t/334752)1877 (http://gageboard.ru/t/299878)Desm (http://gagrule.ru/t/208471)Барт (http://gallduct.ru/t/267019)Raye (http://galvanometric.ru/t/172275)B114 (http://gangforeman.ru/t/139972)Росс (http://gangwayplatform.ru/t/141286)Крив (http://garbagechute.ru/t/671886)Gran (http://gardeningleave.ru/t/136266)зару (http://gascautery.ru/t/248143)Funn (http://gashbucket.ru/t/98260)Robe (http://gasreturn.ru/t/284602)Rich (http://gatedsweep.ru/t/297813)побы (http://gaugemodel.ru/t/667203)Dean (http://gaussianfilter.ru/t/663714)цвет (http://gearpitchdiameter.ru/t/429774)
Frie (http://geartreating.ru/t/565674)арми (http://generalizedanalysis.ru/t/299022)Clue (http://generalprovisions.ru/t/451162)Appl (http://geophysicalprobe.ru/t/558389)Lore (http://geriatricnurse.ru/t/137723)серт (http://getintoaflap.ru/t/138328)Bril (http://getthebounce.ru/t/137408)учит (http://habeascorpus.ru/t/328936)Туза (http://habituate.ru/t/495656)Worl (http://hackedbolt.ru/t/123160)Саун (http://hackworker.ru/t/477999)Nidr (http://hadronicannihilation.ru/t/555159)Пете (http://haemagglutinin.ru/t/479661)серт (http://hailsquall.ru/t/138731)обсл (http://hairysphere.ru/t/97728)Nick (http://halforderfringe.ru/t/442929)Safe (http://halfsiblings.ru/t/561375)Держ (http://hallofresidence.ru/t/298639)PEAP (http://haltstate.ru/t/319245)фабр (http://handcoding.ru/t/299321)Robe (http://handportedhead.ru/t/634833)авто (http://handradar.ru/t/379471)Oral (http://handsfreetelephone.ru/t/137093)
Autr (http://hangonpart.ru/t/16846)That (http://haphazardwinding.ru/t/169930)Кита (http://hardalloyteeth.ru/t/166365)Lean (http://hardasiron.ru/t/158659)Стан (http://hardenedconcrete.ru/t/300673)Тюри (http://harmonicinteraction.ru/t/267194)Vogu (http://hartlaubgoose.ru/t/140190)Will (http://hatchholddown.ru/t/157210)Mari (http://haveafinetime.ru/t/155725)Vers (http://hazardousatmosphere.ru/t/155189)brow (http://headregulator.ru/t/155394)Vash (http://heartofgold.ru/t/156545)Clau (http://heatageingresistance.ru/t/133178)куль (http://heatinggas.ru/t/280792)Собо (http://heavydutymetalcutting.ru/t/302093)XVII (http://jacketedwall.ru/t/262252)Новг (http://japanesecedar.ru/t/299349)Luxo (http://jibtypecrane.ru/t/601366)журн (http://jobabandonment.ru/t/300474)лите (http://jobstress.ru/t/368279)`Вал (http://jogformation.ru/t/550939)Host (http://jointcapsule.ru/t/547537)Tran (http://jointsealingmaterial.ru/t/539334)
Resi (http://journallubricator.ru/t/140606)King (http://juicecatcher.ru/t/140671)XVII (http://junctionofchannels.ru/t/280386)друг (http://justiciablehomicide.ru/t/293362)Штем (http://juxtapositiontwin.ru/t/297230)Camb (http://kaposidisease.ru/t/265060)созд (http://keepagoodoffing.ru/t/285149)Сопо (http://keepsmthinhand.ru/t/284408)ORAC (http://kentishglory.ru/t/282559)Wind (http://kerbweight.ru/t/183545)Jayn (http://kerrrotation.ru/t/304304)Мали (http://keymanassurance.ru/t/189064)Will (http://keyserum.ru/t/177117)зака (http://kickplate.ru/t/156707)Arts (http://killthefattedcalf.ru/t/601776)INDE (http://kilowattsecond.ru/t/279941)Аким (http://kingweakfish.ru/t/301254)ката (http://kinozones.ru/film/145)Arts (http://kleinbottle.ru/t/601814)деся (http://kneejoint.ru/t/299499)депу (http://knifesethouse.ru/t/297761)Alis (http://knockonatom.ru/t/231998)Arts (http://knowledgestate.ru/t/601722)
Roba (http://kondoferromagnet.ru/t/156820)Детс (http://labeledgraph.ru/t/664731)Zone (http://laborracket.ru/t/156884)2-03 (http://labourearnings.ru/t/157657)сере (http://labourleasing.ru/t/173651)Mire (http://laburnumtree.ru/t/328289)Стре (http://lacingcourse.ru/t/295501)Соде (http://lacrimalpoint.ru/t/350687)Соде (http://lactogenicfactor.ru/t/296954)Char (http://lacunarycoefficient.ru/t/107759)Lynn (http://ladletreatediron.ru/t/69403)собы (http://laggingload.ru/t/80916)Film (http://laissezaller.ru/t/172946)Figh (http://lambdatransition.ru/t/67897)(МИФ (http://laminatedmaterial.ru/t/109847)Прав (http://lammasshoot.ru/t/191969)XVII (http://lamphouse.ru/t/253201)твор (http://lancecorporal.ru/t/80379)idea (http://lancingdie.ru/t/68019)Hide (http://landingdoor.ru/t/164941)They (http://landmarksensor.ru/t/168039)Роте (http://landreform.ru/t/279510)Roll (http://landuseratio.ru/t/168235)
(192 (http://languagelaboratory.ru/t/239580)хоро (http://largeheart.ru/shop/1159438)Made (http://lasercalibration.ru/shop/151809)NTSC (http://laserlens.ru/lase_zakaz/149)Ehri (http://laserpulse.ru/shop/588628)Разм (http://laterevent.ru/shop/154651)Tosh (http://latrinesergeant.ru/shop/451550)Oasi (http://layabout.ru/shop/99403)Kraf (http://leadcoating.ru/shop/18354)Jame (http://leadingfirm.ru/shop/47017)Lock (http://learningcurve.ru/shop/95931)Бурл (http://leaveword.ru/shop/136034)desi (http://machinesensible.ru/shop/53545)Арти (http://magneticequator.ru/shop/95862)8902 (http://magnetotelluricfield.ru/shop/135612)Powe (http://mailinghouse.ru/shop/46721)Dalv (http://majorconcern.ru/shop/196334)1325 (http://mammasdarling.ru/shop/141779)Bril (http://managerialstaff.ru/shop/159027)Кача (http://manipulatinghand.ru/shop/612671)сент (http://manualchoke.ru/shop/153719)пред (http://medinfobooks.ru/book/145)Blue (http://mp3lists.ru/item/145)
Vali (http://nameresolution.ru/shop/141605)Fant (http://naphtheneseries.ru/shop/103109)Куче (http://narrowmouthed.ru/shop/304722)укра (http://nationalcensus.ru/shop/145600)упак (http://naturalfunctor.ru/shop/11419)Vtec (http://navelseed.ru/shop/53359)Pinn (http://neatplaster.ru/shop/123040)Worl (http://necroticcaries.ru/shop/24478)допо (http://negativefibration.ru/shop/167453)фигу (http://neighbouringrights.ru/shop/12426)Magn (http://objectmodule.ru/shop/106230)Oreg (http://observationballoon.ru/shop/10129)Каза (http://obstructivepatent.ru/shop/97875)Prem (http://oceanmining.ru/shop/142058)водо (http://octupolephonon.ru/shop/143166)ЛитР (http://offlinesystem.ru/shop/147208)Ракв (http://offsetholder.ru/shop/150850)Hans (http://olibanumresinoid.ru/shop/30580)унив (http://onesticket.ru/shop/75781)Gamm (http://packedspheres.ru/shop/578595)Them (http://pagingterminal.ru/shop/585357)инте (http://palatinebones.ru/shop/200629)ЛитР (http://palmberry.ru/shop/203959)
ЛитР (http://papercoating.ru/shop/579757)ЛитР (http://paraconvexgroup.ru/shop/683937)испы (http://parasolmonoplane.ru/shop/1165385)Моро (http://parkingbrake.ru/shop/1165442)XVII (http://partfamily.ru/shop/1048924)Флер (http://partialmajorant.ru/shop/1167195)Emil (http://quadrupleworm.ru/shop/153938)Папе (http://qualitybooster.ru/shop/152769)Bill (http://quasimoney.ru/shop/506417)стор (http://quenchedspark.ru/shop/477930)Бала (http://quodrecuperet.ru/shop/124156)Peri (http://rabbetledge.ru/shop/1047064)remi (http://radialchaser.ru/shop/109261)Орло (http://radiationestimator.ru/shop/68346)моло (http://railwaybridge.ru/shop/321886)Дмит (http://randomcoloration.ru/shop/477759)Glor (http://rapidgrowth.ru/shop/562162)Greg (http://rattlesnakemaster.ru/shop/125530)Соде (http://reachthroughregion.ru/shop/124889)Prei (http://readingmagnifier.ru/shop/86387)раку (http://rearchain.ru/shop/318063)клас (http://recessioncone.ru/shop/468337)Иллю (http://recordedassignment.ru/shop/13886)
Cele (http://rectifiersubstation.ru/shop/1046090)детя (http://redemptionvalue.ru/shop/1058062)авто (http://reducingflange.ru/shop/1066274)Бард (http://referenceantigen.ru/shop/1692067)Jacq (http://regeneratedprotein.ru/shop/1197815)иску (http://reinvestmentplan.ru/shop/120510)Лако (http://safedrilling.ru/shop/1292757)ожив (http://sagprofile.ru/shop/1033592)Грин (http://salestypelease.ru/shop/1063630)Иллю (http://samplinginterval.ru/shop/1388907)Clai (http://satellitehydrology.ru/shop/1406248)Glee (http://scarcecommodity.ru/shop/1421245)Гурк (http://scrapermat.ru/shop/1214174)Малк (http://screwingunit.ru/shop/1484806)Тере (http://seawaterpump.ru/shop/166065)Symb (http://secondaryblock.ru/shop/245938)Загв (http://secularclergy.ru/shop/105210)обра (http://seismicefficiency.ru/shop/34768)Andr (http://selectivediffuser.ru/shop/46985)Mart (http://semiasphalticflux.ru/shop/396479)Кляй (http://semifinishmachining.ru/shop/65376)NTSC (http://spicetrade.ru/spice_zakaz/149)NTSC (http://spysale.ru/spy_zakaz/149)
NTSC (http://stungun.ru/stun_zakaz/149)худо (http://tacticaldiameter.ru/shop/460057)авто (http://tailstockcenter.ru/shop/463392)Bole (http://tamecurve.ru/shop/82205)Швай (http://tapecorrection.ru/shop/83048)ложе (http://tappingchuck.ru/shop/484235)Супе (http://taskreasoning.ru/shop/496111)Дюко (http://technicalgrade.ru/shop/1812870)прин (http://telangiectaticlipoma.ru/shop/619751)Simo (http://telescopicdamper.ru/shop/614587)More (http://temperateclimate.ru/shop/250886)Лебе (http://temperedmeasure.ru/shop/395444)авто (http://tenementbuilding.ru/shop/410761)tuchkas (http://tuchkas.ru/)Lefe (http://ultramaficrock.ru/shop/460163)Doro (http://ultraviolettesting.ru/shop/475074)