Skip to content

Commit 4de9324

Browse files
committed
Incorporate fix from wxWidgetsTemplate
+ Static linking (see commit fa08583ac3a0cc64f7e5979659838e0e0290f405 on wxWidgetsTemplate)
1 parent 81eb379 commit 4de9324

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

linux-pkg.sh

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ mkdir -p $appimagepath
1313
# copy necessary pieces
1414
cp $build_dir/$name $appimagepath # executable
1515
cp $src/wxlin.xpm $appimagepath # icon
16-
# copy libraries
17-
cp $lib_dir/libwx_baseu-3.1.so $appimagepath
18-
cp $lib_dir/libwx_baseu-3.1.so.3 $appimagepath
19-
cp $lib_dir/libwx_baseu-3.1.so.3.0.0 $appimagepath
20-
cp $lib_dir/libwx_baseu_net-3.1.so $appimagepath
21-
cp $lib_dir/libwx_baseu_net-3.1.so.3 $appimagepath
22-
cp $lib_dir/libwx_baseu_net-3.1.so.3.0.0 $appimagepath
23-
cp $lib_dir/libwx_baseu_xml-3.1.so $appimagepath
24-
cp $lib_dir/libwx_baseu_xml-3.1.so.3 $appimagepath
25-
cp $lib_dir/libwx_baseu_xml-3.1.so.3.0.0 $appimagepath
26-
cp $lib_dir/libwx_gtk3u_core-3.1.so $appimagepath
27-
cp $lib_dir/libwx_gtk3u_core-3.1.so.3 $appimagepath
28-
cp $lib_dir/libwx_gtk3u_core-3.1.so.3.0.0 $appimagepath
29-
cp $lib_dir/libwx_gtk3u_html-3.1.so $appimagepath
30-
cp $lib_dir/libwx_gtk3u_html-3.1.so.3 $appimagepath
31-
cp $lib_dir/libwx_gtk3u_html-3.1.so.3.0.0 $appimagepath
32-
cp $lib_dir/libwx_gtk3u_qa-3.1.so $appimagepath
33-
cp $lib_dir/libwx_gtk3u_qa-3.1.so.3 $appimagepath
34-
cp $lib_dir/libwx_gtk3u_qa-3.1.so.3.0.0 $appimagepath
35-
cp $lib_dir/libwx_gtk3u_xrc-3.1.so $appimagepath
36-
cp $lib_dir/libwx_gtk3u_xrc-3.1.so.3 $appimagepath
37-
cp $lib_dir/libwx_gtk3u_xrc-3.1.so.3.0.0 $appimagepath
3816

17+
# copy dynamic libraries (uncomment the following if using dynamic wx build)
18+
#cp $lib_dir/libwx_baseu-3.1.so $appimagepath
19+
#cp $lib_dir/libwx_baseu-3.1.so.3 $appimagepath
20+
#cp $lib_dir/libwx_baseu-3.1.so.3.0.0 $appimagepath
21+
#cp $lib_dir/libwx_baseu_net-3.1.so $appimagepath
22+
#cp $lib_dir/libwx_baseu_net-3.1.so.3 $appimagepath
23+
#cp $lib_dir/libwx_baseu_net-3.1.so.3.0.0 $appimagepath
24+
#cp $lib_dir/libwx_baseu_xml-3.1.so $appimagepath
25+
#cp $lib_dir/libwx_baseu_xml-3.1.so.3 $appimagepath
26+
#cp $lib_dir/libwx_baseu_xml-3.1.so.3.0.0 $appimagepath
27+
#cp $lib_dir/libwx_gtk3u_core-3.1.so $appimagepath
28+
#cp $lib_dir/libwx_gtk3u_core-3.1.so.3 $appimagepath
29+
#cp $lib_dir/libwx_gtk3u_core-3.1.so.3.0.0 $appimagepath
30+
#cp $lib_dir/libwx_gtk3u_html-3.1.so $appimagepath
31+
#cp $lib_dir/libwx_gtk3u_html-3.1.so.3 $appimagepath
32+
#cp $lib_dir/libwx_gtk3u_html-3.1.so.3.0.0 $appimagepath
33+
#cp $lib_dir/libwx_gtk3u_qa-3.1.so $appimagepath
34+
#cp $lib_dir/libwx_gtk3u_qa-3.1.so.3 $appimagepath
35+
#cp $lib_dir/libwx_gtk3u_qa-3.1.so.3.0.0 $appimagepath
36+
#cp $lib_dir/libwx_gtk3u_xrc-3.1.so $appimagepath
37+
#cp $lib_dir/libwx_gtk3u_xrc-3.1.so.3 $appimagepath
38+
#cp $lib_dir/libwx_gtk3u_xrc-3.1.so.3.0.0 $appimagepath
3939

4040
# generate AppImage pieces
4141
printf "#!/bin/sh\ncd \"\$(dirname \"\$0\")\"; echo 'starting!'; LD_LIBRARY_PATH=. ./$name" > $appimagepath/AppRun

makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# flags needed to build the target (compiler, target name, and compiler flags)
22
CC = g++
3-
CFLAGS := `wxWidgets/build/linux/wx-config --cppflags` `wxWidgets/build/linux/wx-config --libs` -Wl,-rpath,wxWidgets/build/linux/lib/
3+
CFLAGS := `wxWidgets/build/linux/wx-config --cxxflags --libs` -Wl,-rpath,wxWidgets/build/linux/lib/
44
target = UnityHubNative
55

66
# location of source files
@@ -31,7 +31,7 @@ all: $(lib_build_path)/$(lib_file_detect)
3131

3232
# link the object files together into the executable
3333
$(build_dir)/$(target): $(objects)
34-
$(CC) $(CFLAGS) $(mode) -o $@ $^
34+
$(CC) $(mode) -o $@ $^ $(CFLAGS)
3535

3636
# compile object files from source files
3737
# This only looks at changes in the .cpp files, so if headers are modified, a rebuild is needed.

setup-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cd build/linux;
3636
echoStatus "configure" "Running configure script"
3737
# run the configure script
3838
success=0;
39-
../../configure --enable-unicode --enable-debug && success=1
39+
../../configure --enable-unicode --disable-shared && success=1
4040

4141
# check success
4242
if [ $success = 0 ]; then

0 commit comments

Comments
 (0)